package com.peace.hospital.opdept.service.common.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peace.hospital.entity.common.Department;
import com.peace.hospital.opdept.mapper.common.DepartmentMapper;
import com.peace.hospital.opdept.service.common.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 科室表 服务实现类
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-11-22
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements IDepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    public Department findDepartmentById(Integer deptId) {
        System.out.println(departmentMapper.selectDepartmentBydeptId(deptId)+"****"+deptId);
        return departmentMapper.selectDepartmentBydeptId(deptId);
    }
}
